/**
 * 
 */
package com.dycn.posdashboard.data;

import java.io.Serializable;
import java.util.Date;

/**
 * POS交易统计信息
 * 按月/按年为单位统计
 * @author gongqiyi
 *
 */
public class PosTransactionDataStats implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6240831575253815725L;

	

	private String branchNo;//提供交易服务分公司号
	private String branchName;//提供交易服务分公司名
	private String terminalMerchantNo;//交易商户终端号=>交易商户号
	private String terminalMerchantName;//交易商户终端名=>交易商户名
	
	
	private String cardNo;//卡号
	
	private Double totalTradeMoney=0.00;//消费总金额
	private int totalTrades=1;//刷卡总次数
   
	private Double tradeMaxMoneyDaily=0.00;//单日最高消费
	private int tradesMaxDaily=0;//单日最高刷卡次数
	
	private Double tradeMinMoneyDaily=0.00;//单日最低消费
	private int tradesMinDaily=0;//单日最低刷卡次数
	
	private Double maxTradeMoney;
	private Double minTradeMoney;
	
	private Double moneyPerTrade=0.00;//刷卡单价->平均价

	private Date firstTradeDate=null;//最早一次消费
	private Date lastTradeDate=null;//最早一次消费
	
	//一个表示统计周期内交易金额 与周期单位的 对应关系
	//例如统计以月为单位的交易金额
	//amount`day`订单串号               ->用`号分割
	private String tradeMoneyConcat="";
	//tradeType`count
	private String tradeTypeConcat="";
	
	
	public Double getMaxTradeMoney() {
		return maxTradeMoney;
	}
	public void setMaxTradeMoney(Double maxTradeMoney) {
		this.maxTradeMoney = maxTradeMoney;
	}
	public Double getMinTradeMoney() {
		return minTradeMoney;
	}
	public void setMinTradeMoney(Double minTradeMoney) {
		this.minTradeMoney = minTradeMoney;
	}
	public String getBranchNo() {
		return branchNo;
	}
	public void setBranchNo(String branchNo) {
		this.branchNo = branchNo;
	}
	public String getBranchName() {
		return branchName;
	}
	public void setBranchName(String branchName) {
		this.branchName = branchName;
	}

	public String getCardNo() {
		return cardNo;
	}
	public void setCardNo(String cardNo) {
		this.cardNo = cardNo;
	}
	public Double getTotalTradeMoney() {
		return totalTradeMoney;
	}
	public void setTotalTradeMoney(Double totalTradeMoney) {
		this.totalTradeMoney = totalTradeMoney;
	}
	public int getTotalTrades() {
		return totalTrades;
	}
	public void setTotalTrades(int totalTrades) {
		this.totalTrades = totalTrades;
	}
	
	public Double getTradeMaxMoneyDaily() {
		return tradeMaxMoneyDaily;
	}
	public void setTradeMaxMoneyDaily(Double tradeMaxMoneyDaily) {
		this.tradeMaxMoneyDaily = tradeMaxMoneyDaily;
	}
	public int getTradesMaxDaily() {
		return tradesMaxDaily;
	}
	public void setTradesMaxDaily(int tradesMaxDaily) {
		this.tradesMaxDaily = tradesMaxDaily;
	}
	public Double getTradeMinMoneyDaily() {
		return tradeMinMoneyDaily;
	}
	public void setTradeMinMoneyDaily(Double tradeMinMoneyDaily) {
		this.tradeMinMoneyDaily = tradeMinMoneyDaily;
	}
	public int getTradesMinDaily() {
		return tradesMinDaily;
	}
	public void setTradesMinDaily(int tradesMinDaily) {
		this.tradesMinDaily = tradesMinDaily;
	}
	public Double getMoneyPerTrade() {
		moneyPerTrade=totalTradeMoney/totalTrades;
		return moneyPerTrade;
	}
	public void setMoneyPerTrade(Double moneyPerTrade) {
		this.moneyPerTrade = moneyPerTrade;
	}
	public Date getFirstTradeDate() {
		return firstTradeDate;
	}
	public void setFirstTradeDate(Date firstTradeDate) {
		this.firstTradeDate = firstTradeDate;
	}
	public Date getLastTradeDate() {
		return lastTradeDate;
	}
	public void setLastTradeDate(Date lastTradeDate) {
		this.lastTradeDate = lastTradeDate;
	}
	public String getTradeMoneyConcat() {
		return tradeMoneyConcat;
	}
	public void setTradeMoneyConcat(String tradeMoneyConcat) {
		this.tradeMoneyConcat = tradeMoneyConcat;
	}
	public String getTradeTypeConcat() {
		return tradeTypeConcat;
	}
	public void setTradeTypeConcat(String tradeTypeConcat) {
		this.tradeTypeConcat = tradeTypeConcat;
	}
	public String getTerminalMerchantNo() {
		return terminalMerchantNo;
	}
	public void setTerminalMerchantNo(String terminalMerchantNo) {
		this.terminalMerchantNo = terminalMerchantNo;
	}
	public String getTerminalMerchantName() {
		return terminalMerchantName;
	}
	public void setTerminalMerchantName(String terminalMerchantName) {
		this.terminalMerchantName = terminalMerchantName;
	}
	
	
	
}
